package com.oig.base.api;


import com.oig.sys.base.vo.HsGoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(contextId = "hsGoodsService", value = "sys-base-server",path = "/hsGoods")
public interface HsGoodsService {

    @PostMapping(value = "/getName")
    String getNameByHsCode(@RequestParam(value = "hsCode") String hsCode) ;

    @PostMapping(value = "/getInfoByHsCode")
    HsGoodsVo getInfoByHsCode(@RequestParam(value = "hsCode") String hsCode) ;

    @PostMapping("/listInfoByHsCode")
    List<HsGoodsVo> listInfoByHsCode(@RequestBody List<String> hsCodeList);
}
